package cn.marinda.spritefragment.data;

import cn.marinda.spritefragment.SpriteFragment;
import org.bukkit.plugin.Plugin;

public class ConfigManager {
    /*
    配置文件管理
     */

    private ConfigData data = null;
    private ExchangeConfig exchange = null;
    private ItemsData item = null;
    private MessageData message =null;

    public ConfigManager(){
        item = new ItemsData();
        message = new MessageData();
        exchange = new ExchangeConfig();
        data = new ConfigData(SpriteFragment.plugin);
    }
    //获取配置文件的yml类
    public ConfigData getConfigData(){
        return data;
    }
    //获取合成的yml类
    public ExchangeConfig getExchangeConfig(){
        return exchange;
    }
    //获取物品的yml类
    public ItemsData getItemData(){
        return item;
    }

    public MessageData getMessageData(){
        return message;
    }

}
